﻿// JScript File
    function setSortData(table, attrib)//implemeneted by Sanal
    {
        val = document.getElementById("ctl00_ContentPlaceHolder3_hfSort").value;
        if (val.indexOf(" asc")>0)
            document.getElementById("ctl00_ContentPlaceHolder3_hfSort").value = "[" + table +"].[" + attrib + "] desc"; 
        else
            document.getElementById("ctl00_ContentPlaceHolder3_hfSort").value = "[" + table +"].[" + attrib + "] asc"; 
    }
